package com.wutuo.wtservice.api;

import com.wutuo.wtservice.api.request.ListServiceRequest;
import com.wutuo.wtservice.api.request.ServiceRequest;
import com.wutuo.wtservice.api.response.ServiceEnumResponse;
import com.wutuo.wtservice.api.response.ServiceResponse;

import java.util.List;

/**
 * Created by Singer_YDW on 2016/11/9.
 */
public interface ServiceAPIService {

    public void addorUpdate(ServiceRequest record);

    public void del(Long id);

    public List<ServiceResponse> lisForPage(ListServiceRequest request);

    public List<ServiceResponse> list(ServiceRequest request);

    /**
     * 获取服务信息
     *
     * @param <T>
     * @param list
     * @param tKey
     * @param skey
     * @return void
     * @author lvh 2016年2月3日 下午1:24:45</br>
     */
    public <T> void getUseServiceByIds(List list, String tKey, String skey);

    public List<ServiceEnumResponse> createServiceEnumResponse(List<ServiceResponse> list);

    /**
     * 获取服务信息
     *
     * @param <T>
     * @param list
     * @param tKey
     * @param skey
     * @return void
     * @author lvh 2016年2月3日 下午1:24:45</br>
     */
    public <T> void getUseServiceByInstationIds(List list, String tKey, String skey);

    public void initService(Long id);
}
